﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aga.Psad.Backend.Entities;
using Aga.Psad.Backend.Repositories;

namespace Aga.Psad.Web
{
    public partial class AvisosRecepcion : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                CargarAvisos();
            }
        }

        private void CargarAvisos()
        {
            AvisoRecepAceptRepository repository = new AvisoRecepAceptRepository();
            List<AvisoRecepAcept> list = repository.GetAll();

            MainGrid.DataSource = list;
            MainGrid.DataBind();
        }
    }
}
